//上传图片关闭按钮
$(".sxsb_close").click(function() {
	$(this).parent("li").css("display", "none");
});
//下拉菜单
$(".jl_sj .shiju_lf").click(function(e) {
  alert(123);

  console.log("下拉打开");

	e = e || window.event;
	if(e.stopPropagation) {
		e.stopPropagation();
	} else {
		e.cancelBubble = true;
	}
	$(this).next(".shiju_lf_xl").slideToggle();
	$(this).next(".shiju_lf_xl").siblings(".shiju_lf_xl").hide();
	var selecttext = $(this);
	var selectmain = $(this).next(".shiju_lf_xl");
	var lis = selectmain.children('li');
	var lis1 = selectmain.children('.li1');
	for(var i = 0; i < lis.length; i++) {
		lis[i].onclick = function() {
			var textval = $(this).html();
			selecttext.text(decodeURIComponent(textval));
		}
	}
	for(var i = 0; i < lis1.length; i++) {
		lis1[i].onclick = function(e) {
			e = e || window.event;
	if(e.stopPropagation) {
		e.stopPropagation();
	} else {
		e.cancelBubble = true;
	}
			var textva2 = $(this).html();
			$(this).parent(".shiju_lf_xl").show();
			lis1.text(decodeURIComponent(textva2));
		}
	}
});
$(document).click(function() {
	$(".shiju_lf_xl").hide();
});

//微信报警-上传录音
//获取页面高度

//遮罩
var zhezhao1 = document.getElementById("zhezhao");
var sheighe = document.documentElement.scrollHeight;
// console.log(sheighe);
$("#zhezhao").css("height", sheighe);
// zhezhao1.style.height= sheighe + "px";

//显示第一个弹出框
$("#wxbj_lysc_img").click(function() {
	$("#lysc_pup1").css("display", "block");
	$("#zhezhao").css("display", "block");
});
//点击第一个弹出框取消
$("#btn_lf1").click(function() {
	$("#lysc_pup1").css("display", "none");
	$("#zhezhao").css("display", "none");
});
//点击第一个弹出框确认
$("#btn_rt1").click(function() {
	$("#lysc_pup1").css("display", "none");
	$("#lysc_pup2").css("display", "block");
});
//点击第二个弹出框确认
$("#btn_lf2").click(function() {
	$("#lysc_pup2").css("display", "none");
	$("#lysc_pup3").css("display", "block");
});
//点击第三个弹出框取消
$("#btn_lf3").click(function() {
	$("#lysc_pup3").css("display", "none");
	$("#zhezhao").css("display", "none");
});
//点击第三个弹出框确定
$("#btn_rt3").click(function() {
	$("#lysc_pup3").css("display", "none");
	$("#zhezhao").css("display", "none");
	$(".wxbj_lysc1").css("display", "block");
});
//点击上传后的录音
$("#bofang").click(function() {

	$("#lysc_pup4").css("display", "block");
	$("#zhezhao").css("display", "block");
});
//点击上传后的录音-删除
$("#btn_lf4").click(function() {
	$("#lysc_pup4").css("display", "none");
	$("#zhezhao").css("display", "none");
	$(".wxbj_lysc1").css("display", "none");
});
//点击上传后的录音-播放
$("#btn_rt4").click(function() {
	$(this).text("暂停");
	$("#lysc_pup_text").text("正在播放，请收听。");
});
